#ifndef __KEY_H__
#define __KEY_H__

#define QuadKey1 GPIOPinRead(GPIO_PORTF_BASE, GPIO_PIN_4)
#define QuadKey2 GPIOPinRead(GPIO_PORTF_BASE, GPIO_PIN_0)

void Key_Init(void);
bool Key_Scan(uint8_t release);
void Menu_Display(void);
void OLED_Hybernate(void);

extern uint8_t Key_Right_Release, Oled_Show_Enable;
extern int16_t Page_Number;
extern int16_t AC_Temp_Setup;

typedef enum
{
    NO_PRESS = 0,
    SHORT_PRESS_BOTH,
    LONG_PRESS_BOTH,
    SHORT_PRESS_A,
    LONG_PRESS_A,
    SHORT_PRESS_B,
    LONG_PRESS_B,
    DOUBLE_PRESS_A,
    DOUBLE_PRESS_B,
} press_state;


#endif
